package com.momo.seckilling.EventModel;


import com.momo.seckilling.strategy.SeckillOperator;

/**
 * Created by li on 2019/3/18.
 * 秒杀事件
 */
public class  SeckillEvent extends Event {
    private SeckillOperator seckillOperator;
    private String name;
    private SeckillEventType seckillEventType;
    private int userid;
    private int id;
    public SeckillEvent(String name,SeckillEventType seckillEventType,SeckillOperator seckillOperator,int userid,int id){
        this.name = name;
        this.seckillEventType = seckillEventType;
        this.seckillOperator = seckillOperator;
        this.userid = userid;
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SeckillEventType getSeckillEventType() {
        return seckillEventType;
    }

    public void setSeckillEventType(SeckillEventType seckillEventType) {
        this.seckillEventType = seckillEventType;
    }

    public SeckillOperator getSeckillOperator() {
        return seckillOperator;
    }

    public void setSeckillOperator(SeckillOperator seckillOperator) {
        this.seckillOperator = seckillOperator;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
